# 创建时间：2025/4/27 星期日 22:07
# 创建人：李德才

## 链式赋值  对象是引用关系，引用的对象是同一个对象
a = b = c = 10
print(a, b, c)
print(id(a), id(b), id(c))

d = 10
e = 10
print(id(d), id(e))

A = B = C = "字符串"
print(A, B, C)
print(id(A), id(B), id(C))

# 这样引用的也是一个

D = "字符串"
E = "字符串"
print(id(D), id(E))

a = 10
a += 10
print(a)

a *= 10
a /= 3
print(a)

## 解包赋值
a, b, c = 1, 2, 3
print(a, b, c)

## 交换值
a, b = 1, 2
a, b = b, a
print(a, b)
